home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-09-01 | 1.9 KB | 76 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="6"
- "COUNT"="3"
- "UIPATH"="System\Crash Control"
- "NAME"="Crash Control Options #1"
- "VERSION"="1.07"
- "OSVERSION"="010101"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Write Dump to MEMORY.LOG"
- "TEXT 2"="Automatically restart Explorer after crash"
- "TEXT 3"="Display filename of device drive causing STOP"
- "DESCRIPTION 1"="Several options what Windows NT should do if it crashes (STOP Error)."
- "DESCRIPTION 2"="More options can be configured using "Control Panel" -> "System" -> "Startup/Shutdown"."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
-
-
- sPath="HKLM\System\CurrentControlSet\Control\CrashControl\"
- sDump="CrashDumpEnabled"
-
- sRest="HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoRestartShell" 'REG_DWORD
-
- sStrange="HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\1" 'REG_DWORD and YES: the valuename is "1"
-
-
- Sub Plugin_Initialize
- if RegPathExists(sPath)=false then
- Disable
- else
- i=RegReadValue(sPath & sDump)
- if i=1 then Call SetUIElement(1,True)
-
- i=RegReadValue(sRest)
- if i=1 then Call SetUIElement(2,True)
-
- i=RegReadValue(sStrange)
- if i=1 then Call SetUIElement(3,True)
- end if
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- if b=true then
- Call RegWriteValue(sPath & sDump,1,2)
- else
- Call RegWriteValue(sPath & sDump,0,2)
- end if
-
- b=GetUIElement(2)
- if b=true then
- Call RegWriteValue(sRest,1,2)
- else
- Call RegWriteValue(sRest,0,2)
- end if
-
- b=GetUIElement(3)
- if b=true then
- Call RegWriteValue(sStrange,1,2)
- else
- i=RegReadValue(sStrange)
- if IsEmpty(i)=false then
- Call RegDeleteValue(sStrange)
- end if
- end if
-
- Call Restart
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-